// JavaScript Document

//验证信息部分
function Test(){
	$("#coo_person_information_bottom_person").focus(function(e) {
        $(".coo_names").text("中文姓名不可少于2个汉字，英文姓名不可少于2个英文单词。");
		$(".coo_names").css("color","red");
    });
	$("#coo_person_information_bottom_person").blur(function(e) {
		var names=$("#coo_person_information_bottom_person").val();
		if(names==""){
			$(".coo_names").text("此处不能为空");
			$(".coo_names").css("color","red");
		}else if((/^[\u4e00-\u9fa5]{2,10}$/).test(names)){  //中文
			$(".coo_names").text("填写成功");
			$(".coo_names").css("color","#50B400");
		}else if((/^[a-z\/]{2,20}$/i).test(names)){
			$(".coo_names").text("填写成功");
			$(".coo_names").css("color","#50B400");
		}else{
			$(".coo_names").text("请填写正确的姓名");	
			$(".coo_names").css("color","red");
		}
    });
	
	$("#coo_person_information_bottom_tel").focus(function(e) {
        $(".coo_phone").text("请填写手机号");
		$(".coo_phone").css("color","red");
    });
	$("#coo_person_information_bottom_tel").blur(function(e) {
		var phone=$("#coo_person_information_bottom_tel").val();
		if(phone==""){
			$(".coo_phone").text("此处不能为空");
			$(".coo_phone").css("color","red");
		}else if((/^1\d{10}$/ ).test(phone)){  
			$(".coo_phone").text("填写成功");
			$(".coo_phone").css("color","#50B400");
		}else{
			$(".coo_phone").text("请填写正确的手机号码");	
			$(".coo_phone").css("color","red");
		}
    });
	 
	
}


window.onload=function(){
	Test();
	$('#ss').numberspinner('setValue', 1);  //设置值
	
	

}